<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<script type="text/javascript">
function countFundAutoOfPerson(idStart, countStr, totalStr) {
	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = "0";
		count = (parseFloat(count) * 10000 + parseFloat(fund) * 10000) / 10000;
	}
	
	var totalStrArr = totalStr.split(",");
	var totalId;
	for ( var i = 0; i < totalStrArr.length; i++) {
		totalId = totalStrArr[i];
		$("#" + idStart + totalId).val(count);
	}
	
}
	$(function(){
		
		if($("#quantity").val()>0){
			
			$("#color10").show();
		}else{
			$("#color10").hide();
		}
		if($("#center_staff_number").val()>0){
			$("#color11").show();
			$("#person").find("input:text").addClass("required");
		}else{
			$("#color11").hide();
			$("#person").find("input:text").removeClass("required");
		}
	});
	function countNum(){
		if($("#quantity").val()>0){
			$("#color10").show();
			$("#majorequipment").find("input:text").addClass("required");
		}else{
			$("#color10").hide();
			$("#majorequipment").find("input:text").removeClass("required");
		}
	}
	function countNumber(){
		if($("#center_staff_number").val()>0){
			$("#color11").show();
			$("#person").find("input:text").addClass("required");
		}else{
			$("#color11").hide();
			$("#person").find("input:text").removeClass("required");
		}
	}
	function checkTabLimit10(tableId)
	{
		var maxLinNum=$("#"+tableId+" tr").length-2;
		if($("#quantity").val()==''){
			scmWarn('平台现有设施条件及开放情况中总数为空，不能添加');
			return false;
		}else if($("#quantity").val()=='0'){
			scmWarn('平台现有设施条件及开放情况中总数为空，不能添加');
			return false;
		}else if(maxLinNum>=$("#quantity").val())
			{
				scmWarn('最多只能添加'+$("#quantity").val()+'条主要设备（50万元以上设备）信息');
				return false;
			}
		return true;
	}
	function checkTabLimit11(tableId)
	{
		var maxLinNum=$("#"+tableId+" tr").length-2;
		if($("#center_staff_number").val()==''){
			scmWarn('平台人员情况中中心人员总数的人数为空，不能添加');
			return false;
		}else if($("#center_staff_number").val()=='0'){
			scmWarn('平台人员情况中中心人员总数的人数为0，不能添加');
			return false;
		}else if(maxLinNum>=$("#center_staff_number").val())
			{
				scmWarn('最多只能添加'+$("#center_staff_number").val()+'条人员详细信息');
				return false;
			}
		return true;
	}
	function initTreeValueExt(treeId, treeNode) {

		var inputId = treeId.substring(0, treeId.lastIndexOf('_'));
		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val("");
			}
			return false;
			}
			var str = treeNode.name;
			var obj = treeNode.parentNode;
			while (obj != null) {
				//str = obj.name + "-" + str;
				obj = obj.parentNode;
			}
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val(str);
		}
</script>

<table class="t_css  table01" width="100%" border="0" cellpadding="0"
	id="facilities" cellspacing="1">
	<col style="width: 12.5%" />
	<col style="width: 12.5%" />
	<col style="width: 12.5%" />
	<col style="width: 12.5%" />
	<col style="width: 12.5%" />
	<col style="width: 6.25%" />
	<col style="width: 6.25%" />
	<col style="width: 5%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<tr>
		<td class="t_bar2" colspan="10"><span class="color_red">*</span>平台现有设施条件及开放情况</td>
	</tr>
	<tr>
		<td colspan="2"></td>
		<td align="center" colspan="2">科研用房面积（m^2）</td>
		<td align="center" colspan="3">仪器数量（台、套）</td>
		<td align="center" colspan="3">仪器原值（万元）</td>
	</tr>
	<tr>
		<td align="right" colspan="2">现有：</td>
		<td colspan="2"><input type="text" id="room_area_new" name="facilitie/room_area_new" class="required" label="现有-->科研用房面积" onfocus="InitInput.setNumber(this,7,2,2)" style="width: 90%;text-align: right;" value="<x:out select="$xmlData/data/facilitie/room_area_new" />" /></td>
		<td colspan="3"><input type="text" id="instrument_quantity_new" name="facilitie/instrument_quantity_new" class="required" label="现有-->仪器数量" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 90%;text-align: right;" value="<x:out select="$xmlData/data/facilitie/instrument_quantity_new" />" /></td>
		<td colspan="3"><input type="text" id="instrument_value_new" name="facilitie/instrument_value_new" class="required" label="现有-->仪器原值" onfocus="InitInput.setNumber(this,7,2,2)" style="width: 90%;text-align: right;" value="<x:out select="$xmlData/data/facilitie/instrument_value_new" />" /></td>
	</tr>
	 <tr>
		<td align="right" colspan="2">近5年增加：</td>
		<td colspan="2"><input type="text" id="room_area" name="facilitie/room_area" label="近5年增加-->科研用房面积" class="required" onfocus="InitInput.setNumber(this,7,2,2)" style="width: 90%;text-align: right;" value="<x:out select="$xmlData/data/facilitie/room_area" />" /></td>
		<td colspan="3"><input type="text" id="instrument_quantity" name="facilitie/instrument_quantity" label="近5年增加-->仪器数量" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 90%;text-align: right;" value="<x:out select="$xmlData/data/facilitie/instrument_quantity" />" /></td>
		<td colspan="3"><input type="text" id="instrument_value" name="facilitie/instrument_value" label="近5年增加-->仪器原值" class="required" onfocus="InitInput.setNumber(this,7,2,2)" style="width: 90%;text-align: right;" value="<x:out select="$xmlData/data/facilitie/instrument_value" />" /></td>
	</tr>
	<tr>
	<td colspan="5" align="center">新增大型仪器设备（50万元以上）</td>
	<td rowspan="2" colspan="5" align="center">其中：具有当前国际先进水平的大型仪器设备数</td>
	</tr>
	<tr>
		<td align="center">总额</td>
		<td align="center">总数</td>
		<td align="center">进口</td>
		<td align="center">国产</td>
		<td align="center">自制</td>
	</tr>
	<tr>
		<td><input type="text" id="zr_total" name="facilitie/total" label="新增大型仪器设备-->总额" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/facilitie/total" />" /></td>
		<td><input type="text" id="quantity" name="facilitie/quantity" label="新增大型仪器设备-->总数" class="gray" disabled="disabled" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/facilitie/quantity" />" /></td>
		<td><input type="text" id="imported" name="facilitie/imported" label="新增大型仪器设备-->进口" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/facilitie/imported" />"
		onchange="countFundAutoOfPerson('','imported,domestic,self_control','quantity');countNum();"  /></td>
		<td><input type="text" id="domestic" name="facilitie/domestic" label="新增大型仪器设备-->国产" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/facilitie/domestic" />"
		onchange="countFundAutoOfPerson('','imported,domestic,self_control','quantity');countNum();" /></td>
		<td><input type="text" id="self_control" name="facilitie/self_control" label="新增大型仪器设备-->自制" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/facilitie/self_control" />"
		onchange="countFundAutoOfPerson('','imported,domestic,self_control','quantity');countNum();" /></td>
		<td align="right">数量：</td>
		<td colspan="2"><input type="text" id="number_equipment" name="facilitie/number_equipment" label="其中：具有当前国际先进水平的大型仪器设备数-->数量" class="required valueGreatEqual:quantity:number_equipment" style="width: 85%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/facilitie/number_equipment" />" /></td>
		<td align="right">金额：</td>
		<td><input type="text" id="amount" name="facilitie/amount" label="其中：具有当前国际先进水平的大型仪器设备数-->金额" class="required valueGreatEqual:zr_total:amount" style="width: 85%;text-align: right;" onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/facilitie/amount" />" /></td>
	</tr>
</table>
<div class="t_bar2"
	style="height: 30px; margin-bottom: -10px; padding-top: 5px; text-align: left;"><span class="color_red" id="color10" style="display: none">*</span>主要设备（50万元以上设备）（最多允许添加条目数为：平台现有设施条件及开放情况中新增大型仪器设备（50万元以上）中的总数）</div>
<table class="t_css  table01" width="100%" border="0" cellpadding="0" id="majorequipment"cellspacing="1">
	<col style="width: 5%" />
	<col style="width: 5%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<thead>
		<tr>
			<th>选择</th>
			<th>序号</th>
			<th>主要设备名称（50万元以上设备）</th>
			<th>购进时间</th>
			<th>设备产地</th>
			<th>原值<br/>（万元）</th>
			<th>型号</th>
			<th>设备先进水平<br/>（国际、国内、省内）</th>
			<th>主要用途</th>
			<th>利用率（%）</th>
			<th>对外开放<br/>（机时）</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none" align="center">
			<td align="center"><input type="radio" class="radiobutton" 
				name="selfund_majorequipment"></td>
			<td align="center"><span name="majorequipments|majorequipment[0]@seq_no">[index]</span>
			</td>
			<td align="center"><input 
				name="majorequipments|majorequipment[0]|equipment_name" label="主要设备名称（50万元以上设备）" value=""
				class="required input_text" style="width: 85%;" maxlength="100" /></td>
				<td align="center">
				<cpt:date id="majorequipment_buying_date_[0]"
				name="majorequipments|majorequipment[0]|buying_date"  
				label="购进时间" size="6" className="required date "></cpt:date>
			</td>
			<td align="center">
			<input name="majorequipments|majorequipment[0]|equipment_area" label="设备产地" value=""
				class="required input_text" style="width: 80%;" maxlength="100" />
			</td>
			<td align="center">
			<input name="majorequipments|majorequipment[0]|original_value" label="原值（万元）" onfocus="InitInput.setNumber(this,7,2,2)" value=""
				class="required input_text" style="width: 80%; text-align: right;"/>
			</td>
			<td align="center">
			<input name="majorequipments|majorequipment[0]|model" label="型号" value=""
				class="required input_text" style="width: 85%;" maxlength="100" />
			</td>
			<td align="center"><cpt:select id="advanced_level[index]" 
					name="advanced_level" key="advanced_level" 
					onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="majorequipments|majorequipment[0]|advanced_level_value"
				class="required" label="设备先进水平" value="" /> <input type="hidden" 
				name="majorequipments|majorequipment[0]|advanced_level_name" value="" /></td>
			<td align="center">
			<input name="majorequipments|majorequipment[0]|main_use" label="主要用途" value=""
				class="required input_text" style="width: 85%;" maxlength="100" />
			</td>
			<td align="center">
			<input name="majorequipments|majorequipment[0]|utilization_ratio" label="利用率" value="" onfocus="InitInput.setNumber(this,3,2,2)"
				class="required input_text" style="width: 85%; text-align: right;"   />
			</td>
			<td align="center">
			<input name="majorequipments|majorequipment[0]|foreign" label="对外开放" value=""
				class="required input_text" style="width: 85%;" maxlength="100" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/majorequipments/majorequipment" var="majorequipment">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="center">
				<td><input type="radio" class="radiobutton" 
					name="selfund_majorequipment"></td>
				<td align="center"><span name="majorequipments/majorequipment[${flag}${index}]@seq_no"><x:out select="$majorequipment/@seq_no" /></span></td>
				<td><input id="equipment_name_[${flag}${index}]" value="<x:out select="$majorequipment/equipment_name"/>"label="主要设备名称（50万元以上设备）" name="majorequipments/majorequipment[${flag}${index}]/equipment_name" maxlength="100" class="required input_text" style="width: 85%" /></td>
				<td align="center">
					<c:set var="buying_date"><x:out select="$majorequipment/buying_date" /></c:set> 
				   <cpt:date id="majorequipment_buying_date_[${flag}${index}]" name="majorequipments/majorequipment[${flag}${index}]/buying_date"
				   label="购进时间" size="6" className="required date" value="${buying_date}"></cpt:date>
				</td>
				<td><input id="equipment_area_[${flag}${index}]"value="<x:out select="$majorequipment/equipment_area"/>"label="设备产地"name="majorequipments/majorequipment[${flag}${index}]/equipment_area" maxlength="100" class="required input_text" style="width: 80%" /></td>
				<td><input id="original_value_[${flag}${index}]"value="<x:out select="$majorequipment/original_value"/>"label="原值（万元）"name="majorequipments/majorequipment[${flag}${index}]/original_value" onfocus="InitInput.setNumber(this,7,2,2)" class="required input_text" style="width: 80%;text-align: right;" /></td>
				<td><input id="model_[${flag}${index}]"value="<x:out select="$majorequipment/model"/>"label="型号"name="majorequipments/majorequipment[${flag}${index}]/model" maxlength="100" class="required input_text" style="width: 85%" /></td>
				<td align="center"><c:set var="advanced_level_value">
						<x:out select="$majorequipment/advanced_level_value" />
					</c:set> <cpt:select id="advanced_level${index}" value="${advanced_level_value }"
						key="advanced_level" name="advanced_level"
						onChange="initControlValue(this.id);"  style="width:90%"></cpt:select>
					<input type="hidden"
					name="majorequipments/majorequipment[${flag}${index}]/advanced_level_value"
					class="required" label="设备先进水平"
					value="<x:out select="$majorequipment/advanced_level_value" />" /> <input
					type="hidden" 
					name="majorequipments/majorequipment[${flag}${index}]/advanced_level_name"
					value="<x:out select="$majorequipment/advanced_level_name" />" /></td>
				<td><input id="main_use_[${flag}${index}]"value="<x:out select="$majorequipment/main_use"/>"label="主要用途"name="majorequipments/majorequipment[${flag}${index}]/main_use" maxlength="100" class="required input_text" style="width: 85%" /></td>
				<td><input id="utilization_ratio_[${flag}${index}]"value="<x:out select="$majorequipment/utilization_ratio"/>"label="利用率"name="majorequipments/majorequipment[${flag}${index}]/utilization_ratio" onfocus="InitInput.setNumber(this,3,2,2)"  class="required input_text" style="width: 85%;text-align: right;" /></td>
				<td><input id="foreign_[${flag}${index}]"value="<x:out select="$majorequipment/foreign"/>"label="对外开放"name="majorequipments/majorequipment[${flag}${index}]/foreign" maxlength="100" class="required input_text" style="width: 85%" /></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("majorequipment");
		</script>
	</tbody>
	</table>
	<table width="100%" align="center">
	<tr>
		<td>
		<input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="if(checkTabLimit10('majorequipment')){addNewRow('majorequipment');showDateTag('majorequipment');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('majorequipment','selfund_majorequipment')"> 
			<input class="button" name="cmdMoveNext" type=button value="下移"onclick="moveNext('majorequipment','selfund_majorequipment')"> 
			<input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('majorequipment','主要设备（50万元以上设备）信息');"></td>
	</tr>
</table>
<table class="t_css  table01" width="100%" border="0" cellpadding="0"
	id="" cellspacing="1">
	<col style="width: 30%" />
	<col style="width: 30%" />
	<col style="width: 40%" />
	<tr>
		<td class="t_bar2" colspan="3">新建中试（生产）基地情况</td>
	</tr>
	<tr>
		<td colspan="3" align="right">单位：条,个</td>
	</tr>
	<tr>
		<td colspan="2" align="center">中间试验</td>
		<td rowspan="2"align="center">新建技术服务网点（个）</td>
	</tr>
	<tr>
		<td align="center">新建基地（个）</td>
		<td align="center">新建生产线（条）</td>
	</tr>
	<tr>
		<td><input type="text" id="new_base" name="proposal/new_base" value="<x:out select="$xmlData/data/proposal/new_base" />" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 90%;text-align: right;" /></td>
		<td><input type="text" id="production_line" name="proposal/production_line" value="<x:out select="$xmlData/data/proposal/production_line" />" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 90%;text-align: right;" /></td>
		<td><input type="text" id="technical_service" name="proposal/technical_service" value="<x:out select="$xmlData/data/proposal/technical_service" />" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 90%;text-align: right;" /></td>
	</tr>
	</table>
	<table class="t_css  table01" width="100%" border="0" cellpadding="0"id="constructionperson" cellspacing="1">
	<col style="width: 10%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<col style="width: 9%" />
	<tr>
		<td colspan="11" class="t_bar2"><span class="color_red">*</span>平台人员情况</td>
	</tr>
	<tr>
		<td colspan="11" align="right">单位：人</td>
	</tr>
	
	<tr>
		<td colspan="2" align="right">平台人员总数：</td>
		<td colspan="9"><input type="text" id="center_staff_number" name="constructionperson/center_staff_number" class="gray" disabled="disabled" value="<x:out select="$xmlData/data/constructionperson/center_staff_number" />" style="text-align: right;" /></td>
	</tr>
	<tr>
		<td colspan="2" rowspan="2" align="right">其中：固定人员：</td>
		<td colspan="3" align="center">研究人员</td>
		<td colspan="2" align="center">技术人员</td>
		<td colspan="2" align="center">管理人员</td>
		<td colspan="2" align="center">其他</td>
	</tr>
	<tr>
		<td colspan="3" align="center"><input id="fixed_research" name="constructionperson/fixed_research" label="其中：固定人员-->研究人员" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/fixed_research" />" /></td>
		<td colspan="2" align="center"><input id="fixed_technology" name="constructionperson/fixed_technology" label="其中：固定人员-->技术人员" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/fixed_technology" />" /></td>
		<td colspan="2" align="center"><input id="fixed_administration" name="constructionperson/fixed_administration" label="其中：固定人员-->管理人员" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/fixed_administration" />" /></td>
		<td colspan="2" align="center"><input id="fixed_other" name="constructionperson/fixed_other" label="其中：固定人员-->其他" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/fixed_other" />" /></td>
	</tr>
	<tr>
		<td colspan="2" rowspan="2" align="right">流动人员：</td>
		<td colspan="3" align="center">访问学者/客座教授</td>
		<td colspan="2" align="center">临时聘用人员</td>
		<td colspan="2" align="center">研究生</td>
		<td colspan="2" align="center">其他</td>
	</tr>
	<tr>
		<td colspan="3" align="center"><input id="flow_scholar" name="constructionperson/flow_scholar" label="流动人员-->访问学者/客座教授" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/flow_scholar" />" /></td>
		<td colspan="2" align="center"><input id="flow_temporary" name="constructionperson/flow_temporary" label="流动人员-->临时聘用人员" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/flow_temporary" />" /></td>
		<td colspan="2" align="center"><input id="flow_graduate" name="constructionperson/flow_graduate" label="流动人员-->研究生" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/flow_graduate" />" /></td>
		<td colspan="2" align="center"><input id="flow_other" name="constructionperson/flow_other" label="流动人员-->其他" class="required" style="width: 90%;text-align: right;" 
		onchange="countFundAutoOfPerson('','fixed_research,fixed_technology,fixed_administration,fixed_other,flow_scholar,flow_temporary,flow_graduate,flow_other','center_staff_number');countNumber()"
		value="<x:out select="$xmlData/data/constructionperson/flow_other" />" /></td>
	</tr>
	<tr>
		<td align="center" rowspan="2">院士</td>
		<td align="center" rowspan="2"><%--千人计划--%></td>
		<td align="center" rowspan="2">杰出青年</td>
		<td align="center" colspan="4">学位学历</td>
		<td align="center" colspan="4">专业技术职称</td>
	</tr>
	<tr>
		<td align="center" >博士</td>
		<td align="center" >硕士</td>
		<td align="center">本科</td>
		<td align="center" >其他</td>
		<td align="center" >高级</td>
		<td align="center" >中级</td>
		<td align="center" >初级</td>
		<td align="center" >其他</td>
	</tr>
	<tr>
		<td><input type="text" id="academician" name="constructionperson/academician" label="院士" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%; text-align: right;" value="<x:out select="$xmlData/data/constructionperson/academician" />"  /></td>
		<td><%--<input type="text" id="program" name="constructionperson/program" label="千人计划" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/program" />"  />--%></td>
		<td><input type="text" id="outstanding" name="constructionperson/outstanding" label="杰出青年" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/outstanding" />"  /></td>
		<td><input type="text" id="doctor" name="constructionperson/doctor" label="学位学历-->博士" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/doctor" />"  /></td>
		<td><input type="text" id="master" name="constructionperson/master" label="学位学历-->硕士" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/master" />"  /></td>
		<td><input type="text" id="undergraduate" name="constructionperson/undergraduate" label="学位学历-->本科" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/undergraduate" />"  /></td>
		<td><input type="text" id="education_other" name="constructionperson/education_other" label="学位学历-->其他" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/education_other" />"  /></td>
		<td><input type="text" id="senior" name="constructionperson/senior" label="专业技术职称-->高级" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/senior" />"  /></td>
		<td><input type="text" id="intermediate" name="constructionperson/intermediate" label="专业技术职称-->中级" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/intermediate" />"  /></td>
		<td><input type="text" id="primary" name="constructionperson/primary" label="专业技术职称-->初级" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/primary" />"  /></td>
		<td><input type="text" id="technology_other" name="constructionperson/technology_other" label="专业技术职称-->其他" class="required" onfocus="InitInput.setNumber(this,7,0,0)" style="width: 80%;text-align: right;" value="<x:out select="$xmlData/data/constructionperson/technology_other" />"  /></td>
	</tr>
	</table>
<div class="t_bar2" style="height: 30px; margin-bottom: -10px; padding-top: 5px; text-align: left;"><span class="color_red" id="color11" style="display: none">*</span>人员详细信息（最多允许添加条目数为：现有人员基本情况中的平台人员总人数）</div>
<table class="t_css  table01" width="100%" border="0" cellpadding="0" id="person" cellspacing="1">
	<col style="width: 5%" />
	<col style="width: 5%" />
	<col style="width: 7.5%" />
	<col style="width: 7.5%" />
	<col style="width: 15%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<col style="width: 10%" />
	<thead>
		<tr>
			<th>选择</th>
			<th>序号</th>
			<th>姓名</th>
			<th>职务</th>
			<th>职称</th>
			<th>学历</th>
			<th>学位</th>
			<th>专业</th>
			<th>主要研究方向</th>
			<th>荣誉称号及主要成就</th>
			<th>备注</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none" align="center">
			<td align="center"><input type="radio" class="radiobutton" 
				name="selfund_person"></td>
			<td align="center"><span name="persons|person[0]@seq_no">[index]</span>
			</td>
			<td align="center"><input 
				name="persons|person[0]|person_name" label="姓名" value=""
				class=" input_text" style="width: 80%;" maxlength="100" /></td>
			<td align="center">
			<input name="persons|person[0]|person_post" label="职务" value=""
				class=" input_text" style="width: 80%;" maxlength="100" />
			</td>
			<td align="center">
				<cpt:tree key="prof_title" cacheable="false" className="" readonly="true" value="" label="职称"  width="65%"
			    id="prof_title_[index]" name="prof_title" showPattern="all" shieldPattern="0" onClick="initTreeValueExt"/>
				<input type="hidden" name="persons|person[0]|prof_title_value" class="required" label="职称" value=""/>
			    <input type="hidden" name="persons|person[0]|prof_title_name" value=""/>
			</td>
			<td align="center"><cpt:select id="educate[index]" 
					name="educate" key="educate" 
					onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="persons|person[0]|educate_value"
				class="required" label="学历" value="" /> <input type="hidden" 
				name="persons|person[0]|educate_name"  value="" /></td>
			<td align="center"><cpt:select id="degree[index]" 
					name="degree" key="degree" 
					onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="persons|person[0]|degree_value"
				class="required" label="学位" value="" /> <input type="hidden" 
				name="persons|person[0]|degree_name" id="degree_name"  value="" /></td>
			<td align="center">
			<input name="persons|person[0]|person_major" label="专业" value=""
				class=" input_text" style="width: 85%;" maxlength="100" />
			</td>
			<td align="center">
			<input name="persons|person[0]|person_research" label="主要研究方向" value=""
				class=" input_text" style="width: 85%;" maxlength="100" />
			</td>
			<td align="center">
			<input name="persons|person[0]|person_achievement" label="荣誉称号及主要成就" value=""
				class=" input_text" style="width: 85%;" maxlength="100" />
			</td>
			<td align="center"><cpt:select id="remark[index]" 
					name="remark" key="remark" 
					onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="persons|person[0]|remark_value"
				class="" label="备注" value="" /> <input type="hidden" 
				name="persons|person[0]|remark_name" value="" /></td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/persons/person" var="person">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="center">
				<td><input type="radio" class="radiobutton" name="selfund_person"></td>
				<td align="center"><span name="persons/person[${flag}${index}]@seq_no"><x:out select="$person/@seq_no" /></span></td>
				<td><input id="person_name_[${flag}${index}]" value="<x:out select="$person/person_name"/>"label="姓名" name="persons/person[${flag}${index}]/person_name" maxlength="100" class=" input_text" style="width: 80%" /></td>
				<td><input id="person_post_[${flag}${index}]"value="<x:out select="$person/person_post"/>"label="职务"name="persons/person[${flag}${index}]/person_post" maxlength="100" class=" input_text" style="width: 80%" /></td>
				<td>
				   <c:set var="prof_title">{'id':'<x:out select="$person/prof_title_value" />','name':'<x:out select="$person/prof_title_name" />'}</c:set>
			       <cpt:tree key="prof_title" cacheable="false" className="" readonly="true" value="${prof_title}" label="职称"  width="65%"
			       id="prof_title_${flag}${index}" name="prof_title" showPattern="all" shieldPattern="0" onClick="initTreeValueExt"/>
				  <input type="hidden" name="persons/person[${flag}${index}]/prof_title_value" class="required" label="职称" value="<x:out select="$person/prof_title_value" />"/>
			      <input type="hidden" name="persons/person[${flag}${index}]/prof_title_name" value="<x:out select="$person/prof_title_name" />"/>
				</td>
				<td align="center"><c:set var="educate_value">
						<x:out select="$person/educate_value" />
					</c:set> <cpt:select id="educate${index}" value="${educate_value }"
						key="educate" name="educate"
						onChange="initControlValue(this.id);"  style="width:90%"></cpt:select>
					<input type="hidden"
					name="persons/person[${flag}${index}]/educate_value"
					class="required" label="学历"
					value="<x:out select="$person/educate_value" />" /> <input
					type="hidden" 
					name="persons/person[${flag}${index}]/educate_name"
					value="<x:out select="$person/educate_name" />" /></td>
					<td align="center"><c:set var="degree_value">
						<x:out select="$person/degree_value" />
					</c:set> <cpt:select id="degree${index}" value="${degree_value }"
						key="degree" name="degree"
						onChange="initControlValue(this.id);"  style="width:90%"></cpt:select>
					<input type="hidden"
					name="persons/person[${flag}${index}]/degree_value"
					class="required" label="学位"
					value="<x:out select="$person/degree_value" />" /> <input
					type="hidden" 
					name="persons/person[${flag}${index}]/degree_name"
					value="<x:out select="$person/degree_name" />" /></td>
				<td><input id="person_major_[${flag}${index}]" value="<x:out select="$person/person_major"/>" label="专业" name="persons/person[${flag}${index}]/person_major" maxlength="100" class=" input_text" style="width: 85%" /></td>
				<td><input id="person_research_[${flag}${index}]" value="<x:out select="$person/person_research"/>" label="主要研究方向" name="persons/person[${flag}${index}]/person_research" maxlength="100" class=" input_text" style="width: 85%" /></td>
				<td><input id="person_achievement_[${flag}${index}]" value="<x:out select="$person/person_achievement"/>" label="荣誉称号及主要成就" name="persons/person[${flag}${index}]/person_achievement" maxlength="100" class=" input_text" style="width: 85%" /></td>
				<td align="center"><c:set var="remark_value">
						<x:out select="$person/remark_value" />
					</c:set> <cpt:select id="remark${index}" value="${remark_value }"
						key="remark" name="remark"
						onChange="initControlValue(this.id);"  style="width:90%"></cpt:select>
					<input type="hidden"
					name="persons/person[${flag}${index}]/remark_value"
					class="" label="备注"
					value="<x:out select="$person/remark_value" />" /> <input
					type="hidden" 
					name="persons/person[${flag}${index}]/remark_name"
					value="<x:out select="$person/remark_name" />" /></td>
				
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("person");
		</script>
	</tbody>
</table>
<table width="100%" align="center">
	<tr>
		<td>
		<input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="if(checkTabLimit11('person')){addNewRow('person');showDateTag('person');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('person','selfund_person')"> 
			<input class="button" name="cmdMoveNext" type=button value="下移"onclick="moveNext('person','selfund_person')"> 
			<input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('person','人员详细信息');"></td>
	</tr>
</table>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：填报包括固定人员和流动人员。备注栏标注“固定人员”或“流动人员”。所填职务是指平台的任职情况。
<table class="t_css  table01" width="100%" border="0" cellpadding="0"id="open_service" cellspacing="1">
		<col style="width: 25%" />
		<col style="width: 25%" />
		<col style="width: 25%" />
		<col style="width: 25%" />
		<tr>
			<td class="t_bar2" colspan="4"><span class="color_red">*</span>开放服务情况</td>
		</tr>
		<tr>
			<td colspan="4" align="right">单位：个，台/套，条，项</td>
		</tr>
		<tr>
			<td align="center">开放实（试）验室(个)</td>
			<td align="center">开放设备（台/套）</td>
			<td align="center">开放生产线（条）</td>
			<td align="center">开放基金项目（项）</td>
		</tr>
		<tr>
			<td align="center"><input id="open_laboratory" name="openservice/open_laboratory" label="开放实（试）验室" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/openservice/open_laboratory" />"  /></td>
			<td align="center"><input id="open_equipment" name="openservice/open_equipment" label="开放设备" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/openservice/open_equipment" />"  /></td>
			<td align="center"><input id="open_production" name="openservice/open_production" label="开放生产线" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/openservice/open_production" />"  /></td>
			<td align="center"><input id="open_fund" name="openservice/open_fund" label="开放基金项目" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/openservice/open_fund" />"  /></td>
		</tr>
</table>
<table class="t_css  table01" width="100%" border="0" cellpadding="0"id="culture" cellspacing="1">
		<col style="width: 33%" />
		<col style="width: 33%" />
		<col style="width: 34%" />
		<tr>
			<td class="t_bar2" colspan="3"><span class="color_red">*</span>培养人才和培训人员情况</td>
		</tr>
		<tr>
			<td colspan="3" align="right">单位：人</td>
		</tr>
		<tr>
			<td colspan="2" align="center">培养人才数量</td>
			<td rowspan="2" align="center">培训人员数量</td>
		</tr>
		<tr>
			<td align="center">博士</td>
			<td align="center">硕士</td>
		</tr>
		<tr>
			<td align="center"><input id="culture_doctor" name="culture/culture_doctor" label="培养人才数量-->博士" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/culture/culture_doctor" />" /></td>
			<td align="center"><input id="culture_master" name="culture/culture_master" label="培养人才数量-->硕士" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/culture/culture_master" />" /></td>
			<td align="center"><input id="train" name="culture/train" label="培训人员数量" class="required" style="width: 90%; text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/culture/train" />" /></td>
		</tr>
</table>
<table class="t_css  table01" width="100%" border="0" cellpadding="0"id="academic_exchange" cellspacing="1">
		<col style="width: 20%" />
		<col style="width: 16%" />
		<col style="width: 16%" />
		<col style="width: 16%" />
		<col style="width: 16%" />
		<col style="width: 16%" />
		<tr>
			<td class="t_bar2" colspan="6"><span class="color_red">*</span>学术交流情况</td>
		</tr>
		<tr>
			<td colspan="6" align="right">单位：次，人，项，万元</td>
		</tr>
		<tr>
			<td rowspan="2" align="center">学术报告会与专题讲座</td>
			<td colspan="3" align="center">国内技术交流会与展销会</td>
			<td colspan="2" align="center">国际学术交流</td>
		</tr>
		<tr>
			<td align="center">次数</td>
			<td align="center">成交项目数</td>
			<td align="center">成交金额</td>
			<td align="center">交流访问次数</td>
			<td align="center">合作项目数</td>
		</tr>
		<tr>
			<td align="center"><input type="text" id="special_lecture" name="academic/special_lecture" label="学术报告会与专题讲座" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/academic/special_lecture" />" /></td>
			<td align="center"><input type="text" id="exhibition_number" name="academic/exhibition_number" label="国内技术交流会与展销会-->次数" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/academic/exhibition_number" />" /></td>
			<td align="center"><input type="text" id="exhibition_project" name="academic/exhibition_project" label="国内技术交流会与展销会-->成交项目数" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/academic/exhibition_project" />" /></td>
			<td align="center"><input type="text" id="exhibition_amount" name="academic/exhibition_amount" label="国内技术交流会与展销会-->成交金额" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,2,2)" value="<x:out select="$xmlData/data/academic/exhibition_amount" />" /></td>
			<td align="center"><input type="text" id="academic_visit" name="academic/academic_visit" label="国际学术交流-->交流访问次数" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/academic/academic_visit" />" /></td>
			<td align="center"><input type="text" id="academic_cooperation" name="academic/academic_cooperation" label="国际学术交流-->合作项目数" class="required" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/academic/academic_cooperation" />" /></td>
		</tr>
</table>
<div class="t_bar2" style="height: 30px; margin-bottom: -10px; padding-top: 5px; text-align: left;">学术（展销）会议信息</div>
<table class="t_css  table01" width="100%" border="0" cellpadding="0" id="meeting" cellspacing="1">
		<col style="width: 5%" />
		<col style="width: 5%" />
		<col style="width: 30%" />
		<col style="width: 20%" />
		<col style="width: 20%" />
		<col style="width: 20%" />
		<thead>
			<tr>
				<th>选择</th>
				<th>序号</th>
				<th>主办学术（展销）会议名称</th>
				<th>会议性质</th>
				<th>参加人员数</th>
				<th>会议效果</th>
			</tr>
		</thead>
		<tbody id="tab">
		<tr style="display: none" align="center">
			<td align="center"><input type="radio" class="radiobutton" 
				name="selfund_meeting"></td>
			<td align="center"><span name="meetings|meeting[0]@seq_no">[index]</span>
			</td>
			<td align="center"><input 
				name="meetings|meeting[0]|meeting_name" label="主办学术（展销）会议名称" value=""
				class="required input_text" style="width: 90%;" maxlength="100" /></td>
			<td align="center"><cpt:select id="metting_nature[index]" 
					name="metting_nature" key="metting_nature" 
					onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="meetings|meeting[0]|metting_nature_value"
				class="required" label="会议性质" value="" /> <input type="hidden" 
				name="meetings|meeting[0]|metting_nature_name" id="metting_nature_name"  value="" /></td>
			<td align="center">
			<input name="meetings|meeting[0]|meeting_number" label="参加人员数" value=""
				class="required input_text" style="width: 90%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" />
			</td>
			<td align="center">
			<input name="meetings|meeting[0]|meeting_effect" label="会议效果" value=""
				class="required input_text" style="width: 90%;" maxlength="100" />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/meetings/meeting" var="meeting">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr align="center">
				<td><input type="radio" class="radiobutton" name="selfund_meeting"></td>
				<td align="center"><span name="meetings/meeting[${flag}${index}]@seq_no"><x:out select="$meeting/@seq_no" /></span></td>
				<td><input id="meeting_name_[${flag}${index}]" value="<x:out select="$meeting/meeting_name"/>"label="主办学术（展销）会议名称" name="meetings/meeting[${flag}${index}]/meeting_name" maxlength="100" class="required input_text" style="width: 90%" /></td>
				<td align="center"><c:set var="metting_nature_value">
						<x:out select="$meeting/metting_nature_value" />
					</c:set> <cpt:select id="metting_nature${index}" value="${metting_nature_value }"
						key="metting_nature" name="metting_nature"
						onChange="initControlValue(this.id);"  style="width:90%"></cpt:select>
					<input type="hidden"
					name="meetings/meeting[${flag}${index}]/metting_nature_value"
					class="required" label="会议性质"
					value="<x:out select="$meeting/metting_nature_value" />" /> <input
					type="hidden" 
					name="meetings/meeting[${flag}${index}]/metting_nature_name"
					value="<x:out select="$meeting/metting_nature_name" />" /></td>
				<td><input id="meeting_number_[${flag}${index}]"value="<x:out select="$meeting/meeting_number"/>"label="参加人员数"name="meetings/meeting[${flag}${index}]/meeting_number" onfocus="InitInput.setNumber(this,7,0,0)"   class="required input_text" style="width: 90%;text-align: right;" /></td>
				<td><input id="meeting_effect_[${flag}${index}]"value="<x:out select="$meeting/meeting_effect"/>"label="会议效果"name="meetings/meeting[${flag}${index}]/meeting_effect" maxlength="100" class="required input_text" style="width: 90%" /></td>
				
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("meeting");
		</script>
	</tbody>
</table>
<table width="100%" align="center">
	<tr>
		<td>
		<input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="if(checkTabLimit('meeting','99','最多只能添加99条学术（展销）会议信息')){addNewRow('meeting');showDateTag('meeting');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('meeting','selfund_meeting')"> 
			<input class="button" name="cmdMoveNext" type=button value="下移"onclick="moveNext('meeting','selfund_meeting')"> 
			<input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('meeting','学术（展销）会议信息');"></td>
	</tr>
</table>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：会议性质：行业、国内、国际会议。



